package beyjava.dao;

import java.util.Vector;

import beyjava.model.Activity;;

/**
 * this class is used for activity data access object
 * @author BEYJAVA
 */
public interface ActivityDAO {
	/**
	 * @param newActivity 
	 * @return boolean if the adding is successfull , return true
	 * this method is used for adding an activity
	 */
	public boolean insertActivity(Activity newActivity);
	/**
	 * @param activityID
	 * @return boolean if the removing  is successfull , return true
	 * this method is used for removing an activity 
	 */
	public  boolean removeActivity(int activityID);
	
	/**
	 * @param updatedActivity
	 * @return boolean if updating is successful , return true ,otherwise false
	 * this method is used for updating an activity
	 */
	public boolean updateActivity(Activity updatedActivity);
	
	/**
	 * @param projectID
	 * @return activies of given project
	 * this method is used for getting all activities of chosen project
	 */
	public Vector<Activity> getActivitiesOfProject(int projectID);
	
	/**
	 * @param activityID
	 * @return the activity that is selected by activityID
	 * this method is used for getting chosen activity
	 */
	public Activity getActivity(int activityID);
}
